﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;
using SocialPack.Composer.PageTypes.Tabs;

namespace SocialPack.Composer.PageTypes.Facebook
{
    [PageType("d3bd5557-2a01-4b5c-ac33-eca51521483f", Filename = "/modules/socialpack/composer/functions/facebook/recommendations.ascx", AvailableInEditMode = false, Name = "[Facebook] Recommendations", Description = "Facebook Recommendations")]
    public class Recommendations : FunctionBase
    {
        [PageTypeProperty(Tab = typeof(ComposerTab), Type = typeof(PropertyString))]
        public virtual string Site { get; set; }

        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "300")]
        public virtual int Width { get; set; }

        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "300")]
        public virtual int Height { get; set; }

        [PageTypeProperty(EditCaption = "Max age", Tab = typeof(ComposerTab))]
        public virtual int MaxAge { get; set; }

        [PageTypeProperty(EditCaption = "Show header", Tab = typeof(ComposerTab))]
        public virtual bool ShowHeader { get; set; }

        [PageTypeProperty(EditCaption = "Country code", Tab = typeof(ComposerTab), DefaultValue = "en_US", DefaultValueType = DefaultValueType.Value, Type = typeof(PropertyString))]
        public virtual string CountryCode { get; set; }
    }
}